
package org.springxrsk.modules.classes.wrapper;

import org.springxrsk.core.mp.support.BaseEntityWrapper;
import org.springxrsk.core.tool.utils.BeanUtil;
import org.springxrsk.modules.classes.pojo.entity.QyClassesLessonsDetailsEntity;
import org.springxrsk.modules.classes.pojo.vo.QyClassesLessonsDetailsVO;
import java.util.Objects;

/**
 * 课表详情 包装类,返回视图层所需的字段
 *
 *  @author
 * @since 2024-06-23
 */
public class QyClassesLessonsDetailsWrapper extends BaseEntityWrapper<QyClassesLessonsDetailsEntity, QyClassesLessonsDetailsVO>  {

	public static QyClassesLessonsDetailsWrapper build() {
		return new QyClassesLessonsDetailsWrapper();
 	}

	@Override
	public QyClassesLessonsDetailsVO entityVO(QyClassesLessonsDetailsEntity qyClassesLessonsDetails) {
		QyClassesLessonsDetailsVO qyClassesLessonsDetailsVO = Objects.requireNonNull(BeanUtil.copyProperties(qyClassesLessonsDetails, QyClassesLessonsDetailsVO.class));

		//User createUser = UserCache.getUser(qyClassesLessonsDetails.getCreateUser());
		//User updateUser = UserCache.getUser(qyClassesLessonsDetails.getUpdateUser());
		//qyClassesLessonsDetailsVO.setCreateUserName(createUser.getName());
		//qyClassesLessonsDetailsVO.setUpdateUserName(updateUser.getName());

		return qyClassesLessonsDetailsVO;
	}


}
